<script>
	export default {
		globalData: {
			header_top: '',
			header_height: '',
			isIos: uni.getSystemInfoSync().osName == 'ios' ? true : false,
			lat: '',
			lng: '',
		},
		onLaunch: function() {
			/** 是否是pc端 */
			// #ifdef H5
			// 获取系统信息
			const systemInfo = uni.getSystemInfoSync();
			 
			// 判断是否为桌面端
			if (systemInfo.platform === 'windows' || systemInfo.platform === 'mac') {
			    location.href = "https://tradesaudi.com"
			    // 执行桌面端的逻辑
			}
			// #endif

			this.$i18n.locale = uni.getStorageSync('showLanguage') ? uni.getStorageSync('showLanguage') : 'en';
			// #ifdef APP
			var equipment = uni.getMenuButtonBoundingClientRect();
			this.globalData.header_top = equipment.top + 5;
			this.globalData.header_height = equipment.height;
			// #endif
			// #ifdef H5
			this.globalData.header_top = 8;
			// #endif
			/* this.$nextTick(()=>{
				this.$tools.setTabBarLanguage();
			}) */
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "uview/index.scss";

	page {
		width: 100%;
		height: 100%;
		font-size: 14px;
		background: #F6F6F6;
		color: #333333;
	}

	.pageHead {
		width: 100%;
		padding: 0 12px 5px;
		box-sizing: border-box;

		.pageTit {
			flex: 1;
			text-align: center;
			font-size: 16px;
		}
	}

	button {
		background: none;
		padding: 0;
		margin: 0;
		border: none;
		line-height: normal;
		font-size: 14px;
	}

	button::after {
		border: none;
	}

	image {
		display: inline-block;
		height: auto;
		width: 100%;
		border-radius: 4px !important;
	}

	input,
	textarea {
		display: block;
		width: 100%;
	}

	.imgPublic {
		font-size: 0;
		overflow: hidden;
	}

	.dFlex {
		display: flex;
	}

	.jStart_aStart {
		justify-content: flex-start;
		align-items: flex-start;
	}

	.jStart_aCenter {
		justify-content: flex-start;
		align-items: center;
	}

	.jStart_aEnd {
		justify-content: flex-start;
		align-items: flex-end;
	}

	.jAround_aStart {
		justify-content: space-around;
		align-items: flex-start;
	}

	.jAround_aCenter {
		justify-content: space-around;
		align-items: center;
	}

	.jAround_aEnd {
		justify-content: space-around;
		align-items: flex-end;
	}

	.jCenter_aStart {
		justify-content: center;
		align-items: flex-start;
	}

	.jCenter_aCenter {
		justify-content: center;
		align-items: center;
	}

	.jCenter_aEnd {
		justify-content: center;
		align-items: flex-end;
	}

	.jEnd_aStart {
		justify-content: flex-end;
		align-items: flex-start;
	}

	.jEnd_aCenter {
		justify-content: flex-end;
		align-items: center;
	}

	.jEnd_aEnd {
		justify-content: flex-end;
		align-items: flex-end;
	}

	.jBetween_aStart {
		justify-content: space-between;
		align-items: flex-start;
	}

	.jBetween_aCenter {
		justify-content: space-between;
		align-items: center;
	}

	.jBetween_aEnd {
		justify-content: space-between;
		align-items: flex-end;
	}

	.flexDirection {
		flex-direction: column;
	}

	.fWap {
		flex-wrap: wrap;
	}

	.seat {
		height: 50px;
	}

	.zz {
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		position: fixed;
		top: 0;
		left: 0;
		z-index: 100;
	}

	.empty {
		width: 50% !important;
		margin: 80rpx auto 20rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	view::-webkit-scrollbar {
		display: none;
		/* Chrome Safari */
	}

	.ios_safe {
		padding-bottom: env(safe-area-inset-bottom) !important;
	}
</style>